package com.endbd.purchase.manage.brand.dao;

import com.endbd.feignapi.model.purchase.CBrand;
import com.endbd.purchase.manage.brand.model.BrandCondition;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;


@Mapper
public interface IBrandDao {

    public List<CBrand> queryBrandCondition(BrandCondition bcon);

    public int addBrand(CBrand brand);

    public int updateBrandById(CBrand brand);

    @MapKey("brand_id")
    public List<String> querybrandName(BrandCondition bcon);

    public void logBrand(Integer brandId);

    public void recoveryBrand(Integer brandId);
}
